/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package simple;

import algorithm.ObjectiveFunction;
import algorithm.Phenotype;

/** An objective function that returns the same fitness, regardless of the phenotype.
 * Useful for example in hierarchical algorithms where a level is not supposed to
 * perform any optimization at all.
 *
 * @author vermaak
 */
public class NullObjective implements ObjectiveFunction {

    public double calculateFitness(Phenotype phenotype) {
        return 1.0;
    }

}
